<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>模板</title>
  <script>
    new function () {
      var _self = this;
      _self.width = 750;//
      _self.fontSize = 100;//
      _self.widthProportion = function () { var p = (document.body && document.body.clientWidth || document.getElementsByTagName("html")[0].offsetWidth) / _self.width; return p > 1 ? 1 : p < 0.5 ? 0.5 : p; };
      _self.changePage = function () {
        document.getElementsByTagName("html")[0].setAttribute("style", "font-size:" + _self.widthProportion() * _self.fontSize + "px !important");
      };
      _self.changePage();
      window.addEventListener('resize', function () { _self.changePage(); }, false);
    };
  </script>
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>
